//
//  NSString+Hash.h
//  JinliWallet
//
//  Created by 张玮 on 2018/10/17.
//  Copyright © 2018年 张玮. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (Hash)

@property (readonly) NSString *md5String;
@property (readonly) NSString *sha1String;
@property (readonly) NSString *sha256String;
@property (readonly) NSString *sha512String;

- (NSString *)hmacSHA1StringWithKey:(NSString *)key;
- (NSString *)hmacSHA256StringWithKey:(NSString *)key;
- (NSString *)hmacSHA512StringWithKey:(NSString *)key;

//Base64
- (NSString *)hmacSHA1StringWithKeyBase64:(NSString *)key;


@end

NS_ASSUME_NONNULL_END
